<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/admin/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath %>"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
 <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="css/style.css"/>       
        <link href="assets/css/codemirror.css" rel="stylesheet">
        <link rel="stylesheet" href="assets/css/ace.min.css" />
        <link rel="stylesheet" href="font/css/font-awesome.min.css" />
        <!--[if lte IE 8]>
		  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
		<![endif]-->
		<script src="js/jquery-1.9.1.min.js"></script>
        <script src="assets/js/bootstrap.min.js"></script>
		<script src="assets/js/typeahead-bs2.min.js"></script> 
        <script type="text/javascript" src="js/H-ui.js"></script>      	
		<script src="assets/js/jquery.dataTables.min.js"></script>
		<script src="assets/js/jquery.dataTables.bootstrap.js"></script>
        <script src="assets/layer/layer.js" type="text/javascript" ></script>          
        <script src="assets/laydate/laydate.js" type="text/javascript"></script>
        <script src="assets/js/jquery.easy-pie-chart.min.js"></script>
        <script src="js/lrtk.js" type="text/javascript" ></script>
<title>订单详细</title>
</head>
<body>
<div class="margin clearfix">
<div class="Order_Details_style">
<div class="Numbering">订单编号:<b>${order.orderno }</b></div></div>
 <div class="detailed_style">
 <!--收件人信息-->
    <div class="Receiver_style">
     <div class="title_name">收件人信息</div>
     <div class="Info_style clearfix">
        <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 收件人姓名： </label>
         <div class="o_content">${order.consname }</div>
        </div>
        <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 收件人电话： </label>
         <div class="o_content">${order.consphone }</div>
        </div>
         <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 收件地邮编： </label>
         <div class="o_content">${order.conscode}</div>
        </div>
         <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 收件地址： </label>
         <div class="o_content">${order.consaddress}</div>
        </div>
     </div>
    </div>
    <!--订单信息-->
    <div class="product_style">
    <div class="title_name">产品信息</div>
    <div class="Info_style clearfix">
    	<c:forEach items="${ogs}" var="og">
			<div class="product_info clearfix">
				<a href="#" class="img_link"><img
					src="${og.goodsthums }" /></a> <span> <a
					target="_blank"
					href=""
					class="name_link">${og.goodsnames}</a>
					<p>数量：${og.goodnums }</p>
					<p>
						价格：<b class="price"><i>￥</i>${og.goodsprice }</b>
					</p>
					<p>
						状态：
						<c:if test="${og.good.stock>0}">
							<i class="label label-success radius">有货</i>
						</c:if>
						<c:if test="${og.good.stock<=0}">
							<i class="label label-success radius">无货</i>
						</c:if>
					</p>
				</span>
			</div>
		</c:forEach>
    </div>
    </div>
    <!--总价-->
    <div class="Total_style">
     <div class="Info_style clearfix">
      <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 支付方式： </label>
         <div class="o_content">在线支付</div>
        </div>
        <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 支付状态： </label>
         <div class="o_content">
	       	<c:if test="${order.ispay==1}">
	       	 	已付款
	        </c:if>
	        <c:if test="${order.ispay==0}">
	        	 等待付款
	        </c:if>
         </div>
        </div>
        <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 订单生成日期： </label>
         <div class="o_content"><fmt:formatDate value="${order.createtime}" pattern="yyyy-MM-dd HH:mm:ss"/></div>
        </div>
         <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 快递名称： </label>
         <div class="o_content">中通快递</div>
        </div>
         <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 发货日期： </label>
         <div class="o_content">
         	<c:if test="${order.issend==1 }">
         	<fmt:formatDate value="${order.deliervytime}" pattern="yyyy-MM-dd HH:mm:ss"/>
         	</c:if>
         	<c:if test="${order.issend==0 }">
         	未发货
         	</c:if>
         </div>
        </div>
        </div>
      <div class="Total_m_style"><span class="Total">总数：<b>${order.goodcount }</b>件</span><span class="Total_price">
      	总价：<b>${order.totalprice}</b>元</span>&nbsp;&nbsp;<span class="Total_price">实际付款：<b>
      	${order.realprice }</b>元</span></div>
    </div>
    
    <!--物流信息-->
    
    <div class="Logistics_style clearfix">
     <div class="title_name">物流信息</div>
     <c:if test="${empty logis }">
      <div class="prompt"><img src="images/meiyou.png" /><p>暂无物流信息！</p></div>
      </c:if>
      <c:if test="${!empty logis }">
       <div data-mohe-type="kuaidi_new" class="g-mohe " id="mohe-kuaidi_new">
        <div id="mohe-kuaidi_new_nucom">
            <div class="mohe-wrap mh-wrap">
                <div class="mh-cont mh-list-wrap mh-unfold">
                    <div class="mh-list">
                        <ul>
                        	<c:forEach items="${logis.Traces}" var="logi" varStatus="index">
                        	<li <c:if test="${index.count==1}">class="first"</c:if>>
                                <p>${logi.AcceptTime }</p>
                                <p>${logi.AcceptStation}</p>
                                <span class="before"></span><span class="after"></span><c:if test="${index.count==1}"><i class="mh-icon mh-icon-new"></c:if></i>
                            </li>
                        	</c:forEach>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </c:if>
    </div>
<div class="Button_operation">
				<button onclick="article_save_submit();" class="btn btn-primary radius" type="submit"><i class="icon-save "></i>返回上一步</button>
				
				<button onclick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
			</div>
            
            
 </div>
</div>
</body>
</html>